package com.codez.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.codez.domain.Menu;
import com.codez.mapper.MenuMapper;
import com.coedz.service.DMenuService;

/**
 *  @author codez
 *	@createTime 2019-04-19 02:55:23
 */

@Service("menuService")
public class DMenuServiceImpl implements DMenuService{
	
	@Autowired
	private MenuMapper menuMapper;
	
	@Override
	public List<Menu> findAll() {
		System.err.println("findAll");
		return menuMapper.findAll();
	}

	@Override
	public Menu findById(Integer id) {
		System.err.println("findById");
		return menuMapper.findById(id);
	}

	@Override
	public int update(Menu menu) {
		System.err.println("update");
		return menuMapper.update(menu);
	}

}

